package life.kenny.community.exception;

/**
 * @author Jay
 * @date 2021/11/12 9:38 上午
 */
public class CustomizeException extends RuntimeException{

    private String message;
    private Integer code;

    public CustomizeException(ICustomizeErrorCode error) {
        this.code = error.getCode();
        this.message = error.getMessage();
    }

    @Override
    public String getMessage() {
        return message;
    }
    public Integer getCode() {
        return code;
    }
}
